Skip to content

OPTI-4285: Handle partial responses on sideloaded subtitle connector - #129

Merged
ceyhun-o merged 7 commits into
mainfrom
bugfix/OPTI-4285-partial-response
Sep 9, 2026
Merged

OPTI-4285: Handle partial responses on sideloaded subtitle connector#129
ceyhun-o merged 7 commits into
mainfrom
bugfix/OPTI-4285-partial-response

Conversation

@ceyhun-o

@ceyhun-o ceyhun-o commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

This PR prevents the sideloaded-subtitle connector from forwarding ranged HLS playlist requests.

AVPlayer can initially request a master manifest with Range: bytes=0-1. When the server responds with 206 Partial Content and body #E, the intercepted loading path can treat those bytes as a complete playlist and fail playback.

The connector now removes Range and If-Range from all intercepted playlist requests before storing and returning them. This ensures both the SDK fetch and connector-internal manifest reloads receive complete playlists. Media-segment range requests are not affected.

ceyhun-o and others added 5 commits September 8, 2026 12:46
Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@ceyhun-o
ceyhun-o requested review from Danesz and therama September 8, 2026 11:54
Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@ceyhun-o ceyhun-o added the bug Something isn't working label Sep 8, 2026
@ceyhun-o ceyhun-o changed the title OPTI-4285: Handle partial responses on sideloaded text tracks connector OPTI-4285: Handle partial responses on sideloaded subtitle connector Sep 8, 2026
@Danesz

Danesz commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

I think it is fine for now, but on a long term the player internal should respect the partial response and manage the request properly. I would still raise an internal follow-up for this for later.

@therama

therama commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

@ceyhun-o Approved, but I would just add to the list of limitations that we ignore range request.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@ceyhun-o
ceyhun-o merged commit 05fcae5 into main Sep 9, 2026
2 checks passed
@ceyhun-o
ceyhun-o deleted the bugfix/OPTI-4285-partial-response branch September 9, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants